/*
** sort_numbers.c for  in /home/georgi_v/rendu
** 
** Made by georgi_v
** Login   <georgi_v@epitech.net>
** 
** Started on  Sat Oct  5 05:43:06 2013 georgi_v
** Last update Fri Dec  6 19:49:48 2013 georgi_v
*/

#include "my.h"

void	my_sort_int(int *tab, int size)
{
  int	small;
  int	big;
  int	tmp;

  big = 0;
  while (big <  size - 1)
    {
      small = 0;
      while (small < size - 1)
	{
	  if (tab[small] > tab[small + 1])
	    {
	      tmp = tab[small];
	      tab[small] = tab[small + 1];
	      tab[small + 1] = tmp;
	    }
	  small++;
	}
      big = big + 1;
    }
}
